package com.liangwj.springbootdesignpatterns.structureTypePatterns.filter.demo_2;
/**
 * <b>Description:</b> TODO <br/>
 * @author Lingwenjun
 * @date 2019/1/25-10:31
 * @version 1.0
 */
public class FilterDemoTest {

    public static void main(String[] args) {
        FilterManager filterManager = new FilterManager(new Target());
        filterManager.setFilter(new AuthenticationFilter());
        filterManager.setFilter(new DebugFilter());

        Client client = new Client();
        client.setFilterManager(filterManager);
        client.sendRequest("HOME");
    }
}
